<?php

namespace app\home\controller;

use app\common\model\ProductModel;

class Index extends Base
{
    /**
     * 显示资源列表
     */
    public function index()
    {
        return $this->fetch();
    }

    public function goods_detail()
    {
        $id    = input('id');
        $goods = new ProductModel();
        $info  = $goods->where('id', $id)->find();
        $this->assign('info', $info);
        return $this->fetch();
    }
}
